package com.buddy.sds.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.buddy.sds.common.BaseEntity;
import lombok.Data;

import java.util.Collections;
import java.util.List;

@Data
@TableName("t_system_role")
public class SystemRole  implements BaseEntity {

    @TableId(type = IdType.UUID)
    private String roleId;

    private String roleName;

    private String roleDesc;

    private boolean roleModifyable;

    @TableField(exist = false)
    private List<SystemPermission> permissions = Collections.EMPTY_LIST;

}
